/*
 * Copyright (c) 2024. hallele, Inc All rights reserved.
 */

package cn.hallele.mc.sdk.portalcenter.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * MenuDTO
 *
 * @author anle5
 * @since 2024/5/30 23:54
 */
@Getter
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class MenuDTO implements Serializable {
    @Serial
    private static final long serialVersionUID = -6882608960875789474L;

    /**
     * 唯一标识
     */
    @Schema(description = "唯一标识")
    private Long id;

    /**
     * 父菜单id
     */
    @Schema(description = "父菜单id")
    private Long parentId;

    /**
     * 菜单名
     */
    @Schema(description = "菜单名")
    private String title;

    /**
     * 路由名
     */
    @Schema(description = "路由名")
    private String name;

    /**
     * 菜单类型
     */
    @Schema(description = "菜单类型")
    private String menuType;

    /**
     * 菜单路径
     */
    @Schema(description = "菜单路径")
    private String path;

    /**
     * 组件
     */
    @Schema(description = "组件")
    private String component;

    /**
     * 收纳，暂无，默认收纳
     */
    @Schema(description = "收纳")
    private String isSpread;

    /**
     * 状态，0是启用，1是停用
     */
    @Schema(description = "状态")
    private String status;

    /**
     * 权限标识
     */
    @Schema(description = "权限标识")
    private String perm;

    /**
     * 显示状态
     */
    @Schema(description = "显示状态")
    private String isHide;

    /**
     * 排序
     */
    @Schema(description = "排序")
    private Integer sort;

    /**
     * 菜单图标
     */
    @Schema(description = "菜单图标")
    private String icon;

    /**
     * 跳转路径
     */
    @Schema(description = "跳转路径")
    private String redirect;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    /**
     * 【目录】只有一个子路由是否始终显示
     */
    @Schema(description = "【目录】只有一个子路由是否始终显示")
    private String alwaysShow;

    /**
     * 【菜单】是否开启页面缓存
     */
    @Schema(description = "【菜单】是否开启页面缓存")
    private String isKeepAlive;

    /**
     * 【菜单】是否全屏(1:是 0:否)
     */
    @Schema(description = "【菜单】是否全屏(1:是 0:否)")
    private String isFull;

    /**
     * 【菜单】是否固定tab不可关闭(1:是 0:否)
     */
    @Schema(description = "【菜单】是否固定tab不可关闭(1:是 0:否)")
    private String isAffix;

    /**
     * 显示状态
     */
    @Schema(description = "显示状态")
    private String isLink;
}
